package com.kitchen.mapper;

import com.kitchen.beans.entity.Category;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * @author 78468
 * 分类
 */

public interface CategoryMapper extends Mapper<Category>, MySqlMapper<Category> {
    /**
     * 显示所有二级分类中热门程度前14的
     *
     * @return
     */
    List<Category> selectAllByCLevellimit();

    /**
     * 热门分类
     * @return
     */
    List<Category> selectByCLevel();


}